// 导入axios实例对象request
import request from '@/util/request.js'

// 创建updateParamsAPI接口并抛出共享
export const updateParamsAPI = (id, attrId, attrName, activeName) => {
  return request({
    method: 'put',
    url: `categories/${id}/attributes/${attrId}`,
    data: { attr_name: attrName, attr_sel: activeName }
  })
}
